CREATE TABLE [dbo].[tb_RelPlanesSuborg]
(
[idPlanEstudio] [int] NOT NULL,
[idSuborganizacion] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [idx_key] ON [dbo].[tb_RelPlanesSuborg] ([idPlanEstudio], [idSuborganizacion]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_RelPlanesSuborg] WITH NOCHECK ADD CONSTRAINT [FK_tb_RelPlanesSuborg_tb_PlanesEstudio] FOREIGN KEY ([idPlanEstudio]) REFERENCES [dbo].[tb_PlanesEstudio] ([idPlanEstudio])
GO
ALTER TABLE [dbo].[tb_RelPlanesSuborg] WITH NOCHECK ADD CONSTRAINT [FK_tb_RelPlanesSuborg_tb_SubOrganizaciones] FOREIGN KEY ([idSuborganizacion]) REFERENCES [dbo].[tb_SubOrganizaciones] ([idSubOrganizacion])
GO
ALTER TABLE [dbo].[tb_RelPlanesSuborg] NOCHECK CONSTRAINT [FK_tb_RelPlanesSuborg_tb_PlanesEstudio]
GO
ALTER TABLE [dbo].[tb_RelPlanesSuborg] NOCHECK CONSTRAINT [FK_tb_RelPlanesSuborg_tb_SubOrganizaciones]
GO
